package de.javakicker;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class JavaKickerTest {
	
	@Before
	public void setUp(){	}
	
	@After
	public void tearDown(){		}
	
	@Test
	public void testSoccerAction()
	{
		SoccerAction sa = new SoccerAction(SoccerAction.NOTHING, 0);
		
		assertEquals(sa.getAction(), SoccerAction.NOTHING);
		sa.setAction(SoccerAction.DRIBBLE);
		assertEquals(sa.getAction(), SoccerAction.DRIBBLE);
		sa.setAction(SoccerAction.MOVE);
		assertEquals(sa.getAction(), SoccerAction.MOVE);
		sa.setAction(SoccerAction.RUN);
		assertEquals(sa.getAction(), SoccerAction.RUN);
		sa.setAction(SoccerAction.PASS);
		assertEquals(sa.getAction(), SoccerAction.PASS);
	}

}
